package com.fs.groupSeven.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @description:
 * @author: fbb
 * @createDate: 2020/9/28 10:12
 */
public class Student {
    private int studentId;
    private String name;
    private int stuNum;
    private int sex;
    private int age;
    private String phone;
    private int classId;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    private Date joinDate;
    private int state;
    private Class aClass;
    private Grade grade;

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public Grade getGrade() {
        return grade;
    }

    public Class getaClass() {
        return aClass;
    }

    public void setaClass(Class aClass) {
        this.aClass = aClass;
    }

    public int getStuNum() {
        return stuNum;
    }

    public void setStuNum(int stuNum) {
        this.stuNum = stuNum;
    }

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    public Date getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(Date joinDate) {
        this.joinDate = joinDate;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", name='" + name + '\'' +
                ", stuNum=" + stuNum +
                ", sex=" + sex +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                ", classId=" + classId +
                ", joinDate=" + joinDate +
                ", state=" + state +
                ", aClass=" + aClass +
                ", grade=" + grade +
                '}';
    }
}
